﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HospitalScaleListComplit.aspx.cs" Title="已设置比例" MasterPageFile="~/Master/MasterPage_New.master"  Inherits="HZ.Supervise.Web.Secondphase.HospitalScaleListComplit" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register src="../../Common/SortControls.ascx" tagname="SortControls" tagprefix="uc3" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script type="text/javascript">
    $(document).ready(function() {
        if ($("#ctl00_ContentPlaceHolder1_RadioMore").attr("checked") == false) {
            $(".jl").hide();
        }
        $("#ctl00_ContentPlaceHolder1_RadioOne").click(function() {
            $(".jl").hide();
        });
        $("#ctl00_ContentPlaceHolder1_RadioMore").click(function() {
            $(".jl").show();
        });
    });
</script>
  <div id="tabnav">
        <ul>
         <li> <a href="HospitalScaleList.aspx" >未设置比例</a></li>
            <li class="active"><a href="javascript:void(0);">已设置比例</a></li>
           
        </ul>
    </div>
    <div id="tabcontent">

        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblProcureCatalogid" runat="server" Text="流水号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProcureCatalogid" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblproductname" runat="server" Text="通用名："></asp:Label>
                            </td>
                             
                            <td align="left">
                                <asp:TextBox ID="txtproductname" runat="server"></asp:TextBox>
                            </td>
                           <td align="right">
                                <asp:Label ID="lblIsOnline0" runat="server" Text="地区："></asp:Label>
                            </td>
                           <td align="left">
                                <asp:DropDownList ID="ddlAreaName0" runat="server">
                                    
                                </asp:DropDownList>
                            </td>
                             <td align="right">
                                <asp:Label ID="Label7" runat="server" Text="药品类型："></asp:Label>
                            </td>
                             <td align="left">
                                
                                <asp:DropDownList ID="ddltype" runat="server">
                                    <asp:ListItem Value="0">基本药品</asp:ListItem>
                                    <asp:ListItem Value="1">非基本药品</asp:ListItem>
                                    
                                </asp:DropDownList>
                                
                            </td>
                        </tr>
                        <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lbloutlookc" runat="server" Text="规格："></asp:Label>
                            </td>
                             <td align="left">
                                <asp:TextBox ID="txtoutlookc" runat="server"></asp:TextBox>
                            </td>
                              <td align="right">
                                <asp:Label ID="lblFactor" runat="server" Text="包装："></asp:Label>
                            </td>
                             <td align="left">
                                <asp:TextBox ID="txtFactor" runat="server"></asp:TextBox>
                            </td>
                              <td align="right">
                                <asp:Label ID="lblmedicineMoDelName" runat="server" Text="剂型："></asp:Label>
                            </td>
                             <td align="left">
                                <asp:TextBox ID="txtmedicineMoDelName" runat="server" Height="20px"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="Label2" runat="server" Text="补助比例："></asp:Label>
                            </td>
                             <td align="left">
                                <asp:TextBox ID="txtRodi" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                     
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查询" CssClass="btn" Width="40px" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>

    </div>
            <div> 
            </div>
        
        <div  id="tabcontent"> 
        <table  class="querylist">
        <tr>
          <td>
                                
                            <asp:RadioButton ID="RadioOne" runat="server" Checked="True" GroupName="set" 
                                Text="单条设置" />
                                
                            <asp:RadioButton ID="RadioMore" runat="server" GroupName="set" Text="批量设置"  />
                               
                            </td>
         <td align="right">
                                &nbsp;</td>
                            
                            <td align="left">
                                &nbsp;</td>
                            <td class="jl">
                                <asp:RadioButton ID="RadioAll0" runat="server" Text="批量" Checked="True" 
                                    GroupName="all" />
                                <asp:RadioButton ID="RadioAll" runat="server" Text="全部" GroupName="all" />
                                </td><td class="jl">
                                <asp:Label ID="Label3" runat="server" Text="补助比例："></asp:Label></td>
                            <td class="jl" align="left">
                              <asp:TextBox ID="txtRatio2" runat="server" oncontextmenu="javascript:return false;"   
                        onblur="javascript:return check_isdecimal();" 
                                    onkeydown="javascript:return check_isdecimal();" 
                                    ></asp:TextBox>%         
                              <%--  <asp:Label ID="Label2" runat="server" Text="是否应用：" Visible="False"></asp:Label>--%>
                            
                                <asp:Label ID="Label4" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                            
                                </td>
                            
                            <td align="left" class="jl">
                                
                                <%--<asp:RadioButton ID="Radioyes" runat="server" Checked="True" 
                                    Text="启用" GroupName="rdo" Visible="False" />
                                <asp:RadioButton ID="RadioNo" runat="server"  Text="禁用" 
                                    GroupName="rdo" Visible="False"/>--%>
                                
        <hz:HzButton ID="btnBatLock" runat="server" Text="批量设置" OnClick="btnBatLock_Click"
            OnClientClick="return confirm('确实要批量设置比例？');return false;"
            CssClass="btn" OperateType="补助比例" ModuleNo="补助管理" AttributeToControl="Enabled"   />
                                
                            </td>
                           
                             
        </tr>

        </table>
        </div>
    <asp:GridView ID="gvwDistributionRatio" class="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="ProcureCatalogid"  EmptyDataText="暂无符合要求的数据！"
         OnRowCancelingEdit="gvwDistributionRatio_RowCancelingEdit"
        OnRowEditing="gvwDistributionRatio_RowEditing" 
        OnRowUpdating="gvwDistributionRatio_RowUpdating" 
        onrowdatabound="gvwDistributionRatio_RowDataBound">
        <Columns>
           <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
            </asp:TemplateField>
             <asp:BoundField DataField="ProcureCatalogid" HeaderText="流水号" ReadOnly="true" />
            <asp:BoundField DataField="productname" HeaderText="通用名" ReadOnly="true" />
           <asp:BoundField DataField="medicineMoDelName" HeaderText="剂型" ReadOnly="true" />
           <asp:BoundField DataField="outlookc" HeaderText="规格" ReadOnly="true" />
            <asp:BoundField DataField="Factor" HeaderText="包装" ReadOnly="true" />
             <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="true" />
             <asp:BoundField DataField="Material" HeaderText="材质" ReadOnly="true" />
             <asp:TemplateField HeaderText="Id" Visible="false">
                <ItemTemplate>
                   <asp:Label ID="lblDistributionRatioId" runat="server" Text='<%# Bind("DistributionRatioId") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                 <asp:Label ID="lblDistributionRatioId" runat="server" Text='<%# Bind("DistributionRatioId") %>'></asp:Label>
                </EditItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="地区">
                <ItemTemplate>
                   <asp:Label ID="lblDAreaName" runat="server" Text='<%# Bind("DAreaName") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                 <asp:Label ID="lblDAreaName" runat="server" Text='<%# Bind("DAreaName") %>'></asp:Label>
                </EditItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="地区" Visible="false">
                <ItemTemplate>
                   <asp:Label ID="lblDAreaId" runat="server" Text='<%# Bind("DAreaId") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                 <asp:Label ID="lblDAreaId" runat="server" Text='<%# Bind("DAreaId") %>'></asp:Label>
                </EditItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="补助比例">
                <ItemTemplate>
                   <asp:Label ID="Label1" runat="server" Text='<%# Bind("Ratio1") %>'></asp:Label>%
                </ItemTemplate>
                <EditItemTemplate>
                 <asp:TextBox ID="txtRatio" runat="server"  oncontextmenu="javascript:return false;"   
                        onblur="javascript:return check_isdecimal();" onkeydown="javascript:return check_isdecimal();" Text='<%#Bind("Ratio1")%>'></asp:TextBox>%
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Ratio1") %>' Visible="false"></asp:Label>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <EditItemTemplate>
                    <hz:HzLinkButton ID="lbnUpdate" runat="server" CausesValidation="True" CommandName="Update"
                        Text="更新" OperateType="更新" />
                    <hz:HzLinkButton ID="lbnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text="取消" />
                </EditItemTemplate>
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnEdit" runat="server" CausesValidation="True" CommandName="Edit"
                        Text="设置比例" OperateType="补助比例" ModuleNo="补助管理" AttributeToControl="Enabled" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" ">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwDistributionRatio','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                   <%-- <input type="checkbox" name="chkChildUser" id="chkChildUser" value='<%#Eval("ProcureCatalogid")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwDistributionRatio','addTable_chkAll');" />--%>
                         <asp:CheckBox name="chk" id="chk"  runat="server" value='<%#Eval("ProcureCatalogid")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwDistributionRatio','addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"
    >
    </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明:<span>当选择批量设置时，应设置批量比例</span></li>
        </ul>
    </div>
    </asp:Content>